//
//  Texture.m
//  CompGraf2
//
//  Created by Juan Niosi on 11/08/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Texture.h"

@implementation Texture
@synthesize data, tex_id;

- (id)init
{
    self = [super init];
    if (self) {
        
    }
    
    return self;
}

- (id)initWithTex:(GLubyte *)imgData:(GLuint)texId
{
    self = [super init];
    if (self) {
        data = imgData;
        tex_id = texId;
    }
    
    return self;
}

- (void)dealloc
{
    free(data);
    [super dealloc];
}
@end
